package com.yh.threadTest.test;

/**
 * @ClassName Demo2
 * @Description TODO
 * @Author 0715-YuHao
 * @Date 2020/11/11 10:53
 */
public class Demo2 {
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                System.out.println("你好" + i);
            }
        });
        t1.start();
        for (int i = 0; i < 10; i++) {
            System.out.println("我好" + i);
        }
    }
}
